<?php



class BeatUploadMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.BeatUploadMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('beat_upload');
		$tMap->setPhpName('BeatUpload');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('ARTIST', 'Artist', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('TYPE', 'Type', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('LYRIC', 'Lyric', 'string', CreoleTypes::VARCHAR, false, null);

		$tMap->addColumn('USERID', 'Userid', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('LINKFILE', 'Linkfile', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('CREATED', 'Created', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('AUTHOR', 'Author', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('STATUS', 'Status', 'int', CreoleTypes::TINYINT, false, null);

	} 
} 